﻿#ifndef MEM_H_
#define MEM_H_

#ifdef __cplusplus
extern "C" {
#endif


#include "code/inc/config.h"

void mem_init(void);
void mem_poll(void);

void mem_setrtc(const char *time);
uint8 mem_getrtc(char *time);

uint8 mem_getyk(struct t_prodevyk *yk);
void  mem_updatedevyx(const char *gunno,const struct t_prodevyx *devyx);
void  mem_updatedevyc(const char *gunno,const struct t_prodevyc *devyc);

uint8 mem_getpwdauth(struct t_pwdauth *auth);
void  mem_pwdauthack(char *gunno,struct t_pwdauthack *auth);

uint8 mem_getfilecheck(struct t_filecheck *filecheck);
void  mem_filecheckack(struct t_filecheckack *filecheck);
uint8 mem_getfilechange(struct t_filechange *filechange);
uint8 mem_getguiver(char *ver);

void mem_initgui(const struct t_proinitmsg *msg);
void mem_setscreenmsg(char *gunno,char *type,char *value);
void mem_startauth(char *gunno,struct t_startauth *auth);

#ifdef __cplusplus
}
#endif

#endif
